package com.moodair.pip.core;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Properties;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @author Fe by 2021/1/19 上午11:38
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "pipeline")
public class PipelineProperties {
    
    private Map<String, PipelineServerProperties> server = new HashMap<>();
    
    private PipelineProperties allPipelineProperties;
    
    
    
    public Map<String, PipelineServerProperties> getServer() {
        return server;
    }
    
    public void setServer(
            Map<String, PipelineServerProperties> server) {
        this.server = server;
    }
    
    
    public static class PipelineServerProperties {
        
        private Properties input = new Properties();
        private Properties output = new Properties();
        private List<String> plugin = new ArrayList<>();
        
        public Properties getInput() {
            return input;
        }
        
        public void setInput(Properties input) {
            this.input = input;
        }
        
        public Properties getOutput() {
            return output;
        }
        
        public void setOutput(Properties output) {
            this.output = output;
        }
        
        public List<String> getPlugin() {
            return plugin;
        }
        
        public void setPlugin(List<String> plugin) {
            this.plugin = plugin;
        }
    }
    
}
